<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><g:layoutTitle default="Grails"/></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="shortcut icon" href="${assetPath(src: 'favicon.ico')}" type="image/x-icon">
        <link rel="apple-touch-icon" href="${assetPath(src: 'apple-touch-icon.png')}">
        <link rel="apple-touch-icon" sizes="114x114" href="${assetPath(src: 'apple-touch-icon-retina.png')}">
    <asset:stylesheet src="application.css"/>
    <asset:javascript src="application.js"/>
    <g:layoutHead/>
</head>
<body>
    <div id="grailsLogo" role="banner">
        <a href="http://grails.org"><asset:image src="grails_logo.png" alt="Grails"/></a>

        <div class="login" style="float: right;">
            <sec:ifLoggedIn>
                Hello user:&nbsp;<sec:loggedInUserInfo field="username"/><br/>
                <g:link controller='logout'>Logout</g:link>
            </sec:ifLoggedIn>
            <sec:ifNotLoggedIn>
                <g:link controller='login'>Login</g:link>
            </sec:ifNotLoggedIn>
        </div>
        <div class="menu">
            <g:link controller='employee'>Employees</g:link>
            <sec:access expression="hasRole('ROLE_DMCS_ADMIN')">
                <g:link controller='employeeCategory'>Employee categories</g:link>
            </sec:access>
            <sec:ifLoggedIn>
                <g:link action="show" id="${sec.loggedInUserInfo(field: 'id')}">My profile</g:link>
            </sec:ifLoggedIn>
        </div>
    </div>
    <g:layoutBody/>
    <div class="footer" role="contentinfo"></div>
    <div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Loading&hellip;"/></div>
</body>
</html>
